package com.treeliked.netdiskdemo.util;

/**
 * auth constant
 *
 * @author lqs2
 * @date 2018-12-13, Thu
 */
public class AuthConstant {

    /**
     * cookie中用来保存token id的key
     */
    public static final String AUTH_KEY_OF_TOKEN_ID = "TID";

    /**
     * cookie中用来保存用户id的key
     */
    public static final String AUTH_KEY_OF_USER_ID = "UID";

    /**
     * token的有效期，单位 s，实际应用设置1-2个小时
     */
    public static final int TOKEN_VALID_AGE = 1800;
}
